package org.example.dubbo;

import org.apache.dubbo.config.annotation.DubboReference;
import org.example.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @DubboReference(version = "2.0")
    private HelloService helloService;

    @GetMapping("/say-hello")
    public String sayHello() {
        return helloService.sayHello("卢先生");
    }
}
